
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 
<s:form id="getsequ" action="get-seq" cssStyle="clear:left;margin-left:1em;" theme="simple">
    <script type="text/javascript">
        $(document).ready(function(){
            $('#go').click(function(e){
                    
                var sequence = $('#search').val();
                if(sequence==''){
                    alert('Sequence Number is not specified');
                    document.getElementById('getsequ').submit= false;
                }else if(isNaN(sequence)){
                    alert('Pls enter a valid Sequence Number');
                    document.getElementById('getsequ').submit= false;
                }else{
                    document.getElementById('getsequ').submit();
                }
            });
        });

    </script>
    <s:textfield name="sampleseq" id="search" cssClass="sampleseq" title="Sequence Number"/>
    <sj:submit id="go" button="true" cssClass="ui-state-default" cssStyle="font-size:12px;" value="Search"/>
</s:form>
<s:form action="search-coll">
    <s:textfield name="date" id="date" cssClass="sampleseq" title="Date" label="Date"/>
    <s:textfield name="areacode" id="areacode" cssClass="sampleseq" title="Area Code" label="Area Code"/>
    <sj:submit/>
</s:form>